{messages}
<form id="SongApproval_form" action="{url link='current'}" method="post">
<table  class=forumline cellSpacing=0 width="100%" id="song_table">
    <tr>
        <td class="row-header" colspan="7"><span>{language text="songs_for_approval"}</span></td>
    </tr>
    {if !getParam('music_song_approving')}
    <tr>
    	<td>
		<div class="message_info" style="font-size:10pt;">
				{language text='Mod_Music.approval_info_song'}
		</div>
		</td>
	</tr>		
    {else}    
    <tr>
        <td class="catBottom" colspan="6">
        	{language text="here_you_can_approve_songs"}
        </td><td class="catBottom" colspan="1">
        {language text="show"} &nbsp;
            <select name="songs_page_size" onchange="makeIt('SongApproval_form','{url link="current" pageS=1}');">
                {html_options options=$aSongsPageSize selected=$defSongsPageSize}
            </select>
        &nbsp; {language text="songs_per_page"}
        </td>
    </tr>
    <tr>
        <th style="font-size:9pt;" class="row1">
            <input id="All_songs" type="checkbox" onClick="CheckAll('SongApproval_form','sel_songs[]', document.getElementById('All_songs').checked);">
        </th>
        <th style="font-size:9pt;">
            <span><a href="{$aSorting.musician_name.url}" style="color:#FFFFFF">{language text="musician"}</a><img src="design/pic/{$aSorting.musician_name.img}"></span>
        </th>
        <th style="text-align:center;font-size:9pt;">
            <span><a href="{$aSorting.song_title.url}" style="color:#FFFFFF">{language text="song_title"}</a><img src="design/pic/{$aSorting.song_title.img}"></span>
        </th>
        <th style="text-align:center;font-size:9pt;">
            <span><a href="{$aSorting.album_title.url}" style="color:#FFFFFF">{language text="album_title"}</a><img src="design/pic/{$aSorting.album_title.img}"></span>
        </th>
        <th style="text-align:center;font-size:9pt;">
            <span><a href="{$aSorting.genre_name.url}" style="color:#FFFFFF">{language text="genre"}</a><img src="design/pic/{$aSorting.genre_name.img}"></span>
        </th>
        <th style="text-align:center;font-size:9pt;">
            <span><a href="{$aSorting.user_name.url}" style="color:#FFFFFF">{language text="from_member"}</a><img src="design/pic/{$aSorting.user_name.img}"></span>
        </th>
        <th style="text-align:center;font-size:9pt;">
            <span><a href="{$aSorting.song_cdate.url}" style="color:#FFFFFF">{language text="date"}</a><img src="design/pic/{$aSorting.song_cdate.img}"></span>
        </th>
    </tr>
	{foreach from=$aSongs item=aSong name=song}
    <tr>
        <td class="row1"><input name="songs[{$aSong.song_id}]" value="{$aSong.song_id}" id="{$aSong.song_id}" type="checkbox"></td>
        <td class="row1">{$aSong.musician_name}</td>
        <td class="row1"><a href="javascript:void(0);" onclick='window.open("{url link='public.popup.play' id=$aSong.song_id}", "mp3_Player", "width=500,height=200");'>{$aSong.song_title}</a></td>
        <td class="row1">{$aSong.album_title}</td>
        <td class="row1">
            <select name="genre[{$aSong.song_id}]">
            {html_options options=$aGenres selected=$aSong.genre_id}
            </select>
        </td>
        <td class="row1"><p>{$aSong.user_name}</p></td>
        <td class="row1"> {$aSong.song_cdate}</td>
    </tr>
	{foreachelse}
    <tr>
    	<td style="text-align:center" colspan="7" align="center"><div class="message_info">{language text="there_are_no_unapproved_songs"}.</div></td>
    </tr>
	{/foreach}
  	<tr>
    	<td colspan="7" class="catBottom" style="text-align:center;">
        <input name="approve"  value="{language text="approve_songs"}" type="submit" />
        <input name="delete" value="{language text="delete_songs"}" type="submit" onclick="return sure('');" />
     	</td>
     </tr>
     <tr>
    	<td class="catBottom" colspan="7">
        {include file="`$sRootPath`/_blocks/pager.html"}
    	</td>
  	</tr>
  	{/if}
</table>
</form>